<h1>Facturis List</h1>

<table>
  <thead>
    <tr>
      <th>Id factura</th>
      <th>Data facturare</th>
      <th>Data primire</th>
      <th>Id comanda</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($facturis as $facturi): ?>
    <tr>
      <td><a href="<?php echo url_for('facturi/show?id_factura='.$facturi->getIdFactura()) ?>"><?php echo $facturi->getIdFactura() ?></a></td>
      <td><?php echo $facturi->getDataFacturare() ?></td>
      <td><?php echo $facturi->getDataPrimire() ?></td>
      <td><?php echo $facturi->getIdComanda() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('facturi/new') ?>">New</a>
